package com.nd.sdp.android.person4;

import com.nd.sdp.android.person4.di.DaggerAnimalComponent;
import com.nd.sdp.android.person4.di.DaggerRunComponent;
import com.nd.sdp.android.person4.run.IRun;

import javax.inject.Inject;

public class Animal {

    @Inject
    IRun run;

    public void run(){
        run.run();
    }

    public static void main(String[] args) {
        Animal animal = new Animal();
        DaggerAnimalComponent.builder()
                .runComponent(DaggerRunComponent.create())
                .build().inject(animal);
        animal.run();
    }

}
